#include "stack.h"

int main()
{
	st stack;
	StackInit(&stack);
	StackPush(&stack, 1);
	StackPush(&stack, 2);
	StackPop(&stack);

	StackPush(&stack, 3);
	StackPush(&stack, 4);
	StackPush(&stack, 5);
	while (!StackEmpty(&stack))
	{
		printf("%d ", StackTop(&stack));
		StackPop(&stack);
	}
	StackDestory(&stack);
	return 0;
}